package com.yupi.usercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.usercenter.model.domain.ChatMessage;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 20654
* @description 针对表【chat_message】的数据库操作Service
* @createDate 2025-08-12 21:37:41
*/
public interface ChatMessageService extends IService<ChatMessage> {

    List<ChatMessage> getHistoryMessageList(Long targetUserId, Integer pageNum, Integer pageSize, HttpServletRequest request);

    ChatMessage getLatestMessage(Long targetUserId,HttpServletRequest request);
}
